package com.tsunami.authority.entity.admin;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.tsunami.base.entity.Entity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import lombok.experimental.Accessors;

/**
 * @author lx
 * @date 2023/8/11 14:37
 */
@Data
@EqualsAndHashCode(callSuper = true)
@NoArgsConstructor
@AllArgsConstructor
@ToString(callSuper = true)
@Accessors(chain = true)
@TableName("tnm_app_version")
@Schema(description = "最新版本管理")
public class Version extends Entity<Long> {
    @Schema(description = "版本名称")
    @TableField(value = "name")
    private String name;

    @Schema(description = "应用编码")
    @TableField(value = "code")
    private String code;

    @Schema(description = "最新版本号")
    @TableField(value = "version")
    private String version;

    @Schema(description = "应用类型")
    @TableField(value = "type")
    private String type;
    @Schema(description = "下载地址")
    @TableField(value = "url")
    private String url;
    @Schema(description = "激活状态")
    @TableField(value = "active")
    private Boolean active;
}
